<template>
  <div class="recipe">
      <HomeTitle class="title"/>
      <ul>
          <li v-for="(v,i) in 8" :key="i">
              <img src="@/assets/img/shuibuzhao.png" alt="">
              <p class="p1">睡不着</p>
              <p class="p2">轻松自愈</p>
          </li>
      </ul>
      <HomeList title="t2"/>
  </div>
</template>

<script>
import HomeTitle from './homeTitle.vue'
import HomeList from './homeList.vue'
export default {
components:{
    HomeTitle,
    HomeList
}
}
</script>

<style scoped>
.title{
    background-color: rgb(247, 243, 243);
    border-bottom: none;
}
ul{
    width: 100%;
    height: 1.8rem;
    background-color: rgb(247, 243, 243);
    display: flex;
    align-items: center;
    overflow: auto;
}
li{
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 1.3rem;
    height: 1.4rem;
    border-radius: .1rem;
    margin-left: .1rem;
}
.p1{
    font-size: .14rem;
}
.p2{
    margin: 0 .1rem;
    width: .9rem;
    height: .25rem;
    text-align: center;
    line-height: .23rem;
    border-radius: .05rem;
    color: #fff;
    background-color: green;
    font-size: .16rem;
}
img{

    width: .55rem;
    height: .55rem;
}
</style>